package com.briup.es.domain.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.PastOrPresent;
import java.time.LocalDate;

/**
 * 用于修改用户数据时的数据传输实体
 */
@Data
public class UpdateUserDto {
    @NotNull(message = "id必须存在")
    private Integer id;
    @NotBlank(message = "用户名必须存在")
    private String username;
    private String avatar;
    private Integer gender;
    private String phone;
    @PastOrPresent(message = "生日不能晚于当前时间")
    private LocalDate birthday;
}

